package com.ruoyi.material.mapper;

import com.ruoyi.material.domain.MateProductDevice;
import com.ruoyi.material.domain.MateProductModel;
import com.ruoyi.product.domain.ProductRelation;
import com.ruoyi.material.domain.MaterialProduct;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;
import java.util.Map;

/**
 * @Author
 * @Version 1.0
 */
@Mapper
public interface MateProductMapper {

    int insertMateProduct(MaterialProduct materialProduct);

    public List<MaterialProduct> selectMateriProduct(MaterialProduct materialProduct);

    public List<MaterialProduct> selectMateriProductById(Long mateproductId);

    MaterialProduct selectMateProductById(Long mateproductId);

    List<MaterialProduct> selectMaterialProductList(Long mateproductId);

    int updateMateProduct(MaterialProduct materialProduct);

    int insertMateProductModel(MateProductModel mateProductModel);

    int updateMateProdcutModel(MateProductModel mateProductModel);

    public List<MateProductModel> selectMateProductModel(Long mateproductId);

    int selectMateProductModelByModeno(Long mateModeno);

    void deleteMateProductModel(Long mateModeno);

    public List<MaterialProduct> selectProducts(Map<String, Object> resMap);

    public List<MaterialProduct> selectProductLists(MaterialProduct materialProduct);

    public List<MaterialProduct> selectMateProduct(Long deptId);

    public int insertMateProductDevice(MateProductDevice mateProductDevice);

    public void deleteMaterialProduct(Long mateproductId);

    public void deleteMaterialProductModelById(Long mateproductId);

    public void deleteMaterialProductDevice(Long mateproductId);

    public List<MateProductDevice> selectMateProductDevice(Long mateproductId);

    public List<MateProductDevice> selectmateProductDevices(Long mateProductId);

    public String selectMateProductName(Map<String,Object> resMap);

    public MaterialProduct selectMaterialProductByMap(Map<String,Object> resMap);



}
